﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CANO.WebSite.admin
{
	public partial class Admin : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
            if ((Int32)Session["CurrentRolID"] > 1)
				Response.Redirect("/Index.aspx");

			Session["currentModule"] = "Admin";
			btnUsuarios.ServerClick += new EventHandler(btnUsuarios_ServerClick);
			btnContactos.ServerClick += new EventHandler(btnContactos_ServerClick);
            btnImportar.ServerClick += btnImportar_ServerClick;
		}

        void btnImportar_ServerClick(object sender, EventArgs e)
        {
            Response.Redirect("/Admin/importContacts.aspx");
        }

		void btnContactos_ServerClick(object sender, EventArgs e)
		{
			Response.Redirect("/admin/ContactosAdmin.aspx");
		}

		void btnUsuarios_ServerClick(object sender, EventArgs e)
		{
			Response.Redirect("/admin/UsersAdmin.aspx");
		}

	}
}